package com.movitech.mobile.cz.base.supplier.controller;


import com.movitech.mobile.cz.base.modules.controller.RestReturnResult;
import com.movitech.mobile.cz.base.supplier.entity.SSuppliersMbsContacts;
import com.movitech.mobile.cz.base.supplier.service.SSuppliersMbsContactsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
 * <p>
 * SSuppliersMbsContacts 前端控制器
 * </p>
 *
 * @author Movitech Mobile
 * @since 2018-07-23
 */
@RestController
@RequestMapping("/v1/sSuppliersMbsContacts")
@Api(value = "mbs合同数据基础操作接口", description = "mbs合同数据基础操作接口")
public class SSuppliersMbsContactsController {
    @Autowired
    private SSuppliersMbsContactsService sSuppliersMbsContactsService;

    @GetMapping("/selectByName")
    @ApiOperation(
            value = "根据名称查询",
            notes = "获取所有mbs合同数据接口",
            response = SSuppliersMbsContacts.class
    )
    public RestReturnResult selectByName(String name) {
        RestReturnResult restResult = RestReturnResult.success();
        restResult.setData(sSuppliersMbsContactsService.findSimListByName(name));
        return restResult;
    }




}

